//
//  CCCommentViewController.m
//  Party
//
//  Created by its on 15/5/4.
//  Copyright (c) 2015年 coco. All rights reserved.
//

#import "CCCommentViewController.h"
#import "CCCommentViewModel.h"
@interface CCCommentViewController()
@property (nonatomic, strong) CCCommentViewModel *viewModel;
@end

@implementation CCCommentViewController

- (id) initWithViewModel:(id)viewModel {
  if (self = [super initWithViewModel:viewModel]) {
    _viewModel = viewModel;
  }
  return self;
}

- (void) viewDidLoad {
  [self setupUI];
  [self viewWithCSS];
  [self bindWithViewModel];
  [super viewDidLoad];
}

- (void) setupUI {
  _tableview = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];
  _tableview.delegate = self;
  _tableview.dataSource = self;
}

- (void) viewWithCSS {
  [_tableview mas_makeConstraints:^(MASConstraintMaker *make) {
    make.edges.equalTo(self.view);
  }];
}

- (void) bindWithViewModel {
  
}

#pragma mark delegate
#pragma mark datasource
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  return _viewModel.commentArray.count;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  return  nil;
}
@end
